#ifndef DEL_H
#define DEL_H

#include <QMainWindow>
#include <QTcpSocket>
#include <QMessageBox>
#include "login.h"
#include "uidesign.h"
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonParseError>
#include <QJsonValue>
#include <QJsonValuePtr>
#include <QJsonValueRef>
#include <QJsonValueRefPtr>

namespace Ui {
class Del;
}

class Del : public QMainWindow
{
    Q_OBJECT

public:
    explicit Del(QWidget *parent = 0);
    explicit Del(QTcpSocket* s, QWidget *parent = 0);
    ~Del();

private slots:
    void on_delButton_clicked();
    void recv();
    void on_backButton_clicked();

private:
    Ui::Del *ui;
    QTcpSocket* sock;

signals:
    void mainclose();
};

#endif // DEL_H
